﻿namespace PortableRiotGames.Interfaces.Summoner
{
    using Newtonsoft.Json;
    using PortableRiotGames.Infrastructure;
    using System.Collections.Generic;

    [JsonObject(MemberSerialization.OptIn)]
    public sealed class GetSummonersResponse : ResponseBase
    {
        /// <summary>
        /// The list of summoner name information.
        /// </summary>
        [JsonProperty("summoners")]
        public List<GetSummonersResponseSummonerName> Summoners { get; set; }
    }

    [JsonObject(MemberSerialization.OptIn)]
    public sealed class GetSummonersResponseSummonerName
    {
        /// <summary>
        /// Summoner ID.
        /// </summary>
        [JsonProperty("id")]
        public long ID { get; set; }

        /// <summary>
        /// Summoner name.
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; }
    }
}